﻿
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewData["Title"] = "湖北省检察院档案管理系统 - 档案接收 -诉讼档案接收";
}

<style type="text/css">
    .layui-table-body {
        min-height: 150px;
    }
    .layui-form, .layui-border-box, .layui-table-view {
    margin:0px;
    }
</style>
<div>
    <div class="layui-form Lawsuit-form search">
        <div class="layui-inline">
            <select class="layui-select" id="FileState" name="FileState">
                <option value="">全部</option>
                <option value="0">未提交</option>
                <option selected="selected" value="1">待审核</option>
                <option value="2">通过</option>
                <option value="-1">不通过</option>
            </select>
        </div>
        <div class="layui-inline">
            <select class="layui-select" id="FileClass" name="FileClass">
                <option value="">案卷类别</option>
                <option value="民事行政">民事行政</option>
                <option value="公益诉讼">公益诉讼</option>
                <option value="刑事诉讼">刑事诉讼</option>
            </select>
        </div>
        <div class="layui-inline">
            <input type="text" id="FileNo" name="FileNo" placeholder="档号" class="layui-input" />
        </div>
        <div class="layui-inline">
            <input type="text" id="FYear" name="FYear" class="layui-input" placeholder="开始年度-结束年度" />
        </div>
        <div class="layui-inline">
            <select class="layui-select" id="FTerm" name="FTerm">
                <option selected="selected" value="">-- 期限 --</option>
                <option value="1">永久</option>
                <option value="2">长期</option>
                <option value="3">短期</option>
            </select>
        </div>
        <div class="layui-inline">
            <input type="text" id="CaseValue" name="CaseValue" class="layui-input" placeholder="案由" />
        </div>
        <div class="layui-inline">
            <input type="text" id="DSR" name="DSR" class="layui-input" placeholder="当事人" />
        </div>
        <div class="layui-inline">
            <input type="button" title="检索" class="layui-btn layui-btn-sm reload" value="检索" />
        </div>
    </div>
    <div>
        <table id="table1"></table>
        <table id="table2" lay-filter="table2"></table>
    </div>

    <script type="text/html" id="toolbar1">
        <div class="Lawsuit-tool-content">
            <div class="layui-btn-container Lawsuit-btn-container">
                <button type="button" class="layui-btn layui-btn-sm" lay-event="add">建立档案</button>
                <button type="button" class="layui-btn layui-btn-sm" lay-event="update">修改档案</button>
                <button type="button" class="layui-btn layui-btn-sm layui-btn-danger" lay-event="delete">删除档案</button>
                <button type="button" class="layui-btn layui-btn-sm" lay-event="Directory">目录编写</button>
                <button type="button" class="layui-btn layui-btn-sm" lay-event="DirectoryPost">目录提交审核</button>
            </div>
        </div>
    </script>
</div>


@section scripts{
    <script>
        layui.config({
            base: '/layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'table', 'jquery', 'laydate', 'layer', 'form'], function () {
            var form = layui.form, table = layui.table, $ = layui.$, index = layui.index, laydate = layui.laydate, layer = layui.layer;

            //直接赋值数据
            table.render({
                elem: '#table1',
                toolbar: '#toolbar1',
                defaultToolbar: ['filter'],
                size: 'sm', //尺寸
                page: true, //是否显示分页
                height: 300,
                loading: true //请求数据时，是否显示loading
                , id:'FilesReceiveSSId'
                , cols: [[ //标题栏
                    { field: 'xh', type: 'checkbox', LAY_CHECKED: false }
                    , { field: 'id', title: '关联状态', width: 80, align: 'center', sort: true, fixed: 'left' }
                    , { field: 'transferUnit', title: '移交单位', width: 80, sort: true }
                    , { field: 'transferor', title: '移交人', width: 120, sort: true }
                    , { field: 'transferTime', title: '移交时间', width: 150, sort: true}
                    , { field: 'fYear', title: '年度', width: 80, sort: true }
                    , { field: 'fTerm', title: '期限', width: 100, sort: true }
                    , { field: 'fileNum', title: '数量（卷）', width: 80, sort: true }
                    , { field: 'boxNum', title: '数量（盒）', width: 80, sort: true }
                    , { field: 'receiveor', title: '接收人', width: 80, sort: true }
                    , { field: 'note', title: '备注', width: 80, sort: true }
                ]]
                , data: [{
                    "id": "10001"
                    , "transferUnit": "杜甫"
                    , "transferor": "xianxin@layui.com"
                    , "transferTime": "男"
                    , "city": "浙江杭州"
                    , "fYear": "人生恰似一场修行"
                    , "fTerm": "116"
                    , "fileNum": "192.168.0.8"
                    , "boxNum": "108"
                    , "receiveor": "2016-10-14"
                }, {
                    "id": "10002"
                        , "transferUnit": "杜甫"
                        , "transferor": "xianxin@layui.com"
                        , "transferTime": "男"
                        , "city": "浙江杭州"
                        , "fYear": "人生恰似一场修行"
                        , "fTerm": "116"
                        , "fileNum": "192.168.0.8"
                        , "boxNum": "108"
                        , "receiveor": "2016-10-14"
                    , "LAY_CHECKED": true
                }, {
                    "id": "10003"
                        , "transferUnit": "杜甫"
                        , "transferor": "xianxin@layui.com"
                        , "transferTime": "男"
                        , "city": "浙江杭州"
                        , "fYear": "人生恰似一场修行"
                        , "fTerm": "116"
                        , "fileNum": "192.168.0.8"
                        , "boxNum": "108"
                        , "receiveor": "2016-10-14"
                }, {
                    "id": "10004"
                        , "transferUnit": "杜甫"
                        , "transferor": "xianxin@layui.com"
                        , "transferTime": "男"
                        , "city": "浙江杭州"
                        , "fYear": "人生恰似一场修行"
                        , "fTerm": "116"
                        , "fileNum": "192.168.0.8"
                        , "boxNum": "108"
                        , "receiveor": "2016-10-14"
                }, {
                    "id": "10005"
                        , "transferUnit": "杜甫"
                        , "transferor": "xianxin@layui.com"
                        , "transferTime": "男"
                        , "city": "浙江杭州"
                        , "fYear": "人生恰似一场修行"
                        , "fTerm": "116"
                        , "fileNum": "192.168.0.8"
                        , "boxNum": "108"
                        , "receiveor": "2016-10-14"
                }]          
            });

            //渲染
            window.ins1 = table.render({
                elem: '#table2'
                , loading: true
                , size: 'sm' //尺寸
                , cols: [[
                    { type: 'checkbox', fixed: 'left' }
                    , { field: 'id', title: '档号', width: 80, align: 'center', sort: true, fixed: 'left'}
                    , { field: 'username', title: '统一受案号', width: 120 }
                    , { field: 'email', title: '当事人', width: 150 }
                    , { field: 'sex', title: '性别', width: 80 }
                    , { field: 'city', title: '城市', width: 120 }
                    , { field: 'sign', title: '签名' }
                    , { field: 'experience', title: '积分', width: 80 }
                    , { field: 'ip', title: 'IP', width: 120 }
                    , { field: 'logins', title: '登入次数', width: 100 }
                    , { field: 'joinTime', title: '加入时间', width: 120 }
                ]],
                data: [
                    { "id": "1231" },
                    { "id": "1231" },
                    { "id": "1231" },
                    { "id": "1231" }
                ]
            });

        });
    </script>



    @*<script>
            layui.config({
                base: '/layuiadmin/' //静态资源所在路径
            }).extend({
                index: 'lib/index' //主入口模块
            }).use(['index', 'table', 'jquery', 'laydate', 'layer', 'form'], function () {
                var form = layui.form, table = layui.table, $ = layui.$, index = layui.index, laydate = layui.laydate, layer = layui.layer;

                window.ins1 = table.render({
                    elem: '#table1',
                    url: "/Personal/SuSong/GetAllPersonalSuSongJson",
                    //toolbar: '#toolbar1',
                    // defaultToolbar: ['filter','print','exports'],
                    //defaultToolbar: ['filter'],
                    size: 'sm',
                   // height: 'full-60',
                    cellMinWidth: '100',
                    page: true,
                    //id: 'table1Reload',
                    //sort: true,
                   // height: 130,
                    cols: [[
                        { field: 'xh', type: 'checkbox', LAY_CHECKED: false }
                        , { field: 'filesState', title: '审核状态', align: 'center', sort: true }
                        , { field: 'sqr', title: '申请人' }
                        , { field: 'otherLitigant', title: '其他当事人' }
                        , { field: 'unDepart', title: '终审法院' }
                        , { field: 'undertaker', title: '承办人' }
                    ]]
                });

                table.render({
                    elem: '#talbe2',
                    url: "/Personal/SuSong/GetAllPersonalSuSongJson",
                    //size: 'sm',
                    //height: 'full-60',
                    page: false,
                    //cellMinWidth: '100',

                    //sort: true,
                    //height: 230,
                    cols: [[
                        { field: 'xh', type: 'checkbox', LAY_CHECKED: false }
                        , { field: 'filesState', title: '审核状态', align: 'center', sort: true }
                        , { field: 'fileNo', title: '临时档号', sort: true }
                        , { field: 'fType', title: '案件类别', align: 'center', width: 100, sort: true }
                        , { field: 'fYear', title: '年度', align: 'center', width: 70, sort: true }
                    ]],
                    data: [{
                        "filesState": "1",
                        "fileNo": "1",
                        "fType": "1",
                        "fYear": "1"
                    }]
                });
            });
        </script>*@
}